<template>
  <div>
    <h2>MyRight组件</h2>
    <p>{{ age }}</p>
    <button @click="age++">+1</button>
  </div>
</template>
<script>
export default {
  data() {
    return {
      age: 20,
    };
  },
};
</script>
<style scoped>
div {
  min-height: 200px;
  background-color: red;
}
</style>